package com.lagou.rocket.demo.order.model;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 *
 * </p>
 *
 * @author KK
 * @since 2021-11-06
 */
@Data
@ToString
@Entity
@Table(name="t_seckill_order")
public class Order {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "product_code")
    private String productCode;

    @Column(name = "num")
    private Integer num;

    @Column(name = "status")
    private String status;
}
